<?php 
use \PsiFramework\Classes\Util\UI\Printer;
use \PsiFramework\Classes\Util\UI\HTML;

$url = $response->getAttribute('url');
$form = $response->getAttribute('form');
$entry = $response->getAttribute('entry');
$action = $response->getAttribute('calledAction');

if (!is_null($entry)) {
    $formId = null;
    if (!is_null($form)) {
        $formId = $form->getId();
    }
?>
<div class="trace" style="display:none;">
    <img src="index.php?action=Trace&actionName=<?php echo Printer::getUrl($action); ?>&url=<?php echo Printer::getUrl($url); ?>&form_id=<?php echo Printer::getUrl($formId); ?>&entry_id=<?php echo Printer::getUrl($entry->getId()); ?>" alt="" />
</div>
<?php 
}
?>
